Skip to main content

Error codes

Last Update: 2025/3/26

When using the LLMProvider API, you may encounter various errors. This guide provides an overview of common error codes, their causes, and recommended solutions.

Below, you’ll find a list of potential API errors, including those returned by both the LLMProvider API and its official Python library. Each error code is explained in detail, along with troubleshooting steps to help you resolve issues effectively.


API errors

CodeDescriptionCauseSolution
400Invalid FormatInvalid request body format.Modify your request body according to the hints in the error message. Refer to the LLMProvider API Docs for correct format details.
401Authentication FailsAuthentication fails due to the wrong API key.Check your API key. If you don’t have one, create an API key first.
402Quota ExceedeYou have run out of balance.Check your account balance and visit the Top-up page to add funds.
403ForbiddenYou don’t have permission to access the resource.Check your account permissions or contact support for assistance.
404Not FoundThe requested resource does not exist.Check the resource URL and ensure it is correct.
422Invalid ParametersYour request contains invalid parameters.Modify your request parameters according to the hints in the error message. Refer to the LLMProvider API Docs for correct format details.
429Rate Limit ReachedYou are sending requests too quickly.Pace your requests reasonably. Consider switching to alternative LLM service providers, like OpenAI.
500Server ErrorOur server encounters an issue.Retry your request after a brief wait. Contact support if the issue persists.
503Server OverloadedThe server is overloaded due to high traffic.Retry your request after a brief wait.

Persistent errors

f you continue experiencing errors despite following the suggested solutions, consider the following:

  • Check API Status: Visit the LLMProvider status page to see if there are ongoing issues.
  • Review API Documentation: Ensure your request adheres to the latest API format and requirements.
  • Contact Support: If the issue persists, reach out to LLMProvider support with error details, request logs, and timestamps.